package com.yunji.product.dao;

import cn.hutool.core.lang.Pair;
import com.yunji.common.base.IBaseDao;
import com.yunji.common.model.cache.ProductBelongCacheDTO;
import com.yunji.product.bo.ProductListQueryBO;
import com.yunji.product.bo.ProductSelectQueryBO;
import com.yunji.product.domain.ProductDO;
import com.yunji.product.vo.ProductVO;

import java.util.List;

public interface IProductDao extends IBaseDao<ProductDO> {
    List<ProductDO> searchProductPrice(ProductListQueryBO bo);

    int checkProductSku(ProductVO product);

    int statsOfProductType(Long... productTypeIds);

    int statsOfProductUnit(Long... unitIds);

    int statsOfProductBrand(Long... brandIds);

    ProductBelongCacheDTO selectProductPrice(ProductSelectQueryBO bo);

    Pair<String, String> getProductNameAndPics(Long productId);
}
